This package includes replacements for miscompiled libraries, old versions of stationery and mistaken headers, as well as a list of known errors and how to deal with them.
This document describes workarounds for known errors, and how to install the contents of the patch package.
The Pascal 1.1.1 Update folder contains Metrowerks Pascal version 1.1.1, new Pascal stationery and various support files. Please refer to the release note for information and installation instructions.
Link Error : xldtob.c: 'num2dec' referenced from '_Ldtob' is undefined.
Link Error : xldtob.c: 'dec2str' referenced from '_Ldtob' is undefined.
< FIX > Add the appropriate MathLib to your project.
Link Error : SetupExit.c: '__exit_proc' referenced from 'SetupExit' is undefined.
< FIX > Just insert this line:
void (*__exit_proc__)(void);
somewhere in your global sources. It will never be called anywhere, but must be there to satisfy the linker.
================
Libraries
================
The SIOUX.68K.Lib and the MathLib68K libraries on CW6 were not compiled using the "far" options. If you try to use them in a large project, you will get '16-bit reference to xxx from yyy is out of range' errors.
This package includes an AppleScript which rebuilds the Mathlib68K libraries. Copy it into to the 'Metrowerks C/C++:Libraries:MacOS 68K:MathLib68K' folder, and run it. You may have to adjust the RootPath name to the correct name for your Hard Drive where the CodeWarrior Folder is located. You must also copy the accompanying fp68K(Apple).A4/5.glue.lib files into the 'Metrowerks C/C++:Libraries:MacOS 68K:MathLib68K:MathLib68K Sources' folder.
You should also copy the "far" version of the SIOUX.68K.Lib from into 'Metrowerks C/C++:Libraries:SIOUX' folder.
===================
Stationery
===================
There are mistakes in the CW6 Mac C PPC app and PowerPlant stationery which can cause compile and link errors. This package gives you the fixed versions.
Into Project Stationery folder.
--------------------------
Put the contents of the 'INTO (Project Stationery)' folder into the Metrowerks C/C++ : (Project Stationery) folder, replacing the existing files.
Into Project Stationery Support folder
-----------------------------------
Put the contents of the 'INTO Headers:INTO Project Stationery Support' folder into the Metrowerks C/C++ : Headers : Project Stationery Support folder and replace the existing files.
===================
Other Files
===================
INTO ANSI Headers Folder
------------------------
Corrected versions of the ANSI headers math.h, setjmp.h, stat.h, stdio.h, string.h, and yvals.h. Put the contents of the Into ANSI folder into the 'Metrowerks C/C++ : Headers: ANSI Headers' Folder and replace the existing files.
Into SIOUX Folder
-----------------------
New console.stubs.c adds pragmas to avoid Unused Parameter warnings, and a __ttyname function. This folder also contains SIOUX.68K.Lib. Put the contents of the 'INTO SIOUX' folder into the 'Metrowerks C/C++ : Libraries: SIOUX' folder and replace the existing files.